<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="<%=path %>/images/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path %>/js/popup.js"></script>
       <!--按课程搜索-->
         <script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
		<script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
		<script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
    
               <script language="javascript">
           var i=0;
           function kechengAll()
           {
               if(i==0)
               {
                   document.getElementById("indicator").style.display="block";
                   loginService.kechengAll(callback);
                   i=1;
               }
               
           }
           function callback(data)
           {
               document.getElementById("indicator").style.display="none";
               DWRUtil.addOptions("kecheng_id",data,"id","name");
           }
           
           function check()
           {
               if(document.formAdd.kecheng_id.value==0)
               { 
                   alert("请选择课程");
                   return false;
               }
               return true;
           }
        </script>
       <!--按课程搜索-->
</head>
</head>
<body>

<!--main start -->

<div id="main">
  <jsp:include flush="true" page="/qiantai/inc/incTop2.jsp"></jsp:include>
  
  <!--left panel start -->
  <div id="left">
    <jsp:include flush="true" page="/qiantai/inc/incLeft.jsp"></jsp:include>
  </div>
  <!--left panel end --> 
  <!--right panel start -->
  <div id="right"> 
    <!--rightBotMain start -->
    
    <div class="contactMain"> 
      
      <!--best start --> 
      <!--rightBot start --> 
      <!--rightBot end --> 
      <!--best start -->
      <div id="best1">
        <h2><span>我的题目 </span></h2>
     <!--按课程搜索-->

    <form action="<%=path %>/timu?type=timu_stu" name="formAdd" method="post">
          
        <select name="kecheng_id" id="kecheng_id" onclick="kechengAll()">
                      <option value="0">请选择课程</option>
                    </select>
        <input  type="submit" value="搜索" />
      							                  <img id="indicator" src="<%=path %>/images/loading.gif" style="display:none"/>
</form>

       <!--按课程搜索-->      <table width="99%" border="1" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" align="center" style="margin-top:8px">
          <tr align="center" bgcolor="#FAFAF1" height="22">
            <td>章节名称</td>
            <td>题目名称</td>
            <td>学生姓名</td>
            <td>类别</td>
            <td>收藏时间</td>
            <td>操作</td>
          </tr>
          <c:forEach items="${requestScope.timustuList}" var="timustu">
            <tr align='center' bgcolor="#FFFFFF" height="22">
              <td>${timustu.zhangjie_name}</td>
              <td>${timustu.timu_name}</td>
              <td>${timustu.stu_name}</td>
              <td>${timustu.isfalse}</td>
              <td>${timustu.shijian}</td>
              <td align="center">
              
              <a href="<%=path %>/timu?type=timustuDetail&id=${timustu.timu_id}"  style="font-size: 11px;color: red" >查看</a> 
              
              <a href="<%=path %>/timu?type=timu_stuDel&id=${timustu.id}" style="font-size: 11px;color: red"  onclick="return confirm('你真的确定要删除吗？');">删除</a></td>
            </tr>
          </c:forEach>
        </table>
<table width='98%'  border='0'style="margin-top:8px;margin-left: 5px;">
         <TR align="right">
    <TD ><form action="" method="post" name="formpage">
        <input type="hidden" name="pageCount" value="${requestScope.pagecount}" />
        <!--//用于给上面javascript传值-->
        <input type="hidden" name="page" value="${requestScope.page}" />
        <!--//用于给上面javascript传值-->
        <input type="hidden" name="jumpurl" value="<%=path%>/timu?type=timu_stu&" />
        <!--//用于给上面javascript传值--> 
        <a href="#" onClick="PageTop()"><strong>首页</strong></a>&nbsp;&nbsp;&nbsp; <a href="#" onClick='PagePre()'><strong>上一页</strong></a>&nbsp;&nbsp;&nbsp;
        共${requestScope.cou}条记录,
        共计${requestScope.pagecount}页,
        当前第${requestScope.page}页&nbsp;&nbsp;&nbsp; <a href="#" onClick="PageNext()"><strong>下一页</strong></a>&nbsp;&nbsp;&nbsp; <a href="#" onClick="PageLast()"><strong>尾页</strong></a> 第
        <input name="busjump" type="text" size="3" value="${requestScope.page}" style=" width:15px"/>
        页<a href="#" onClick="bjump()"><strong>跳转</strong></a>&nbsp;&nbsp;&nbsp;
      </form>
             <script type="text/javascript" src="<%=path%>/js/page.js"></script></TD>
  </TR>
       </table>
        <br class="spacer" />
      </div>
      <!--best end --> 
    </div>
    <!--rightBotMain end --> 
    <!--last panel start --> 
    <!--last panel end --> 
    <br class="spacer" />
  </div>
  
  <!--right panel end --> 
  <br class="spacer" />
</div>
<!--main end --> 
<!--footerMain start -->

<jsp:include flush="true" page="/qiantai/inc/incFoot.jsp"></jsp:include>

<!--footerMain end -->
</body>
</html>
